package com.wonders.springcloud.cloudconsumerribbonwithhystrix.controller;

import com.netflix.discovery.converters.Auto;
import com.wonders.springcloud.cloudconsumerribbonwithhystrix.service.DemoConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class DemoConsumerController {
    @Autowired
    DemoConsumerService services;
    @GetMapping("/sayhi")
    public String sayhi(){
        return services.sayhi();
    }
}
